PARSER=parser
DUG =debug
HTTP_SERVER=http_server
cc=g++

.PHONY:all

all: $(PARSER) $(HTTP_SERVER) $(DUG)

$(PARSER):parser.cc
	$(cc) -o $@ $^ -lboost_system -lboost_filesystem -std=c++11

$(DUG):debug.cc
	$(cc) -o $@ $^ -std=c++11 -ljsoncpp

$(HTTP_SERVER):http_server.cc
	$(cc) -o $@ $^ -ljsoncpp -lpthread -std=c++11
.PHONY:clean

clean:
	rm -f $(PARSER) $(DUG) $(HTTP_SERVER)
